package com.zys.config;

import com.zys.domain.User;
import com.zys.mapper.UserMapper;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class UserConfig implements FactoryBean<TestMapper> {

    public void query(){
        System.out.println("UserConfig.query()");
    }


    @Override
    public TestMapper getObject() throws Exception {
        return new TestMapper();
    }

    @Override
    public Class<?> getObjectType() {
        return TestMapper.class;
    }
}
